cmake_minimum_required(VERSION 3.0)

project(mcache)

SET(CMAKE_BUILD_TYPE "DEBUG")
SET(CMAKE_CXX_FLAGS_DEBUG "$ENV{CXXFLAGS} -O0 -Wall -g2 -ggdb")
SET(CMAKE_CXX_FLAGS_RELEASE "$ENV{CXXFLAGS} -O3 -Wall")

include_directories(./)
file(GLOB SRC_FILE "*.cc")
add_executable(mcache ${SRC_FILE})
target_link_libraries(mcache pthread)